package com.itheima.operator;

public class OperatorDemo2 {
    public static void main(String[] args) {
        // 目标：掌握+符号用作连接符：
        String name = "黑马程序员";
        String rs = name + "yyds" + 666;
        System.out.println(rs);

        int a = 5 ;
        System.out.println("abc"  +'a'); // abca
        System.out.println("abc" + a); // abc5
        System.out.println(5 + a); // 10
        System.out.println("abc" + 5 + 'a'); //  abc5a
        System.out.println(15 + "abc" + 15); //  15abc15
        System.out.println(a + 'a'); // 5 + 97 = 102
        System.out.println(a + "" +'a'); //  5a
        System.out.println(a + 'a'+" itheima "); // 5 + 97 + itheima = 102 itheima
        System.out.println("itheima"+ a + 'a'); // itheima5a
        System.out.println("itheima"+ ( a + 'a' )); //  itheima102

    }
}
